package edu.pku.sei.gefcommon.descriptor.descriptors;

import org.eclipse.ui.views.properties.TextPropertyDescriptor;

public class FloatPropertyDescriptor extends TextPropertyDescriptor {
	public FloatPropertyDescriptor(Object id, String name,String catalog) {
		super(id, name);
		this.setCategory(catalog);
		this.setValidator(NumberValidator.doubleValidator);
	}
	
	static public String fromModel(Float value){
		return String.valueOf(value);
	}
	static public Float toModel(String value){
		return Float.parseFloat(value);
	}
}
